import { UserBasicInfoModel, UserNameCardModel } from './user';
import { PageModel } from './common';

class GroupModel {
  public groupName: string;
  public id: string;
  public linkId: string;
  public parentId: string;
}

class ProjectMemberModel {
  public accountId: string;
  public code: string;
  public active: boolean;
  public avatarLink: string;
  public createAt: number;
  public description: string;
  public groups: GroupModel[];
  public id: string;
  public note: string;
  public projectId: string;
  public roleName: string[];
  public tag: string;
  public state: number;
  public updateAt: number;
  public userName: string;
  public registrationTime: number;
  public userBasicInfo: UserBasicInfoModel;
  public userNameCard: UserNameCardModel;
}

class MemberPageModel extends PageModel{
  public data: {
    items: ProjectMemberModel[]
  };
}

export {
  ProjectMemberModel,
  MemberPageModel
};
